/*
 * @Descripttion: 项目接口
 * @version: V1.0
 * @Author: GW
 * @Date: 2021-10-24 15:55:24
 * @LastEditors: GW
 * @LastEditTime: 2021-10-25 10:15:34
 */
import { axios } from "../../utils/request";

//获取编码
export function getCode (parameter) {
    return axios({
        url: "/erp/project/getCode",
        method: "get",
        params: parameter,
        timeout: 500000,
    });
}
//获取项目列表
export function list (parameter) {
    return axios({
        url: "/erp/project/pageList",
        method: "get",
        params: parameter,
        timeout: 500000,
    });
}

//新增/修改项目
export function save (data) {
    return axios({
        url: "/erp/project/save",
        method: "post",
        data: data
    });
}

//删除项目
export function remove (data) {
    return axios({
        url: "/erp/project/delete",
        method: "post",
        data: data
    });
}
